<script setup lang="ts">
const obj = { a: 1, b: '3' }
type MyObj = typeof obj

type PObj = Partial<MyObj>

type MyPartial<T> = {
  [Z in keyof T]?: T[Z]
}
type MObj = MyPartial<MyObj>
// 假设一个对象里的类型 a:number b:string =>{a:[number,number,number],b:[string,string,string]}
type MapObj<T> = {
  [Z in keyof T]: [T[Z], T[Z], T[Z]]
}
type TestMapObj = MapObj<MyObj>
</script>

<template>
  <div class="类型编程二-page">
    <h1>类型编程二</h1>
  </div>
</template>

<style scoped lang="scss"></style>
